package com.naizhuai.ui.entity.mainbusiness;

import java.io.Serializable;

/**
 * 搜索发送的负责人或者参与人员的信息接口
 * Created by code_han on 2018/4/13.
 */

public class TargetSearchLimitedSend implements Serializable {
    public static final String COMPANY_ID="companyId";
    public static final String DEPARTMENT_ID="departmentId";
    public static final String CREATE_TYPE="type";
    public static final String SEARCH_NAME="name";
    public static final String SEARCH_PHONE="phone";


    public static final String TYPE_COMPANY="3";
    public static final String TYPE_DEPARTMENT="2";


    private KeyAndValue companyId;
    private KeyAndValue departmentId;
    private KeyAndValue type;
    private KeyAndValue name;
    private KeyAndValue phone;


    public KeyAndValue getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = new KeyAndValue(COMPANY_ID,companyId);
    }

    public KeyAndValue getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = new KeyAndValue(DEPARTMENT_ID,departmentId);
    }

    public KeyAndValue getType() {
        return type;
    }

    public void setType(String type) {
        this.type = new KeyAndValue(CREATE_TYPE,type);
    }

    public KeyAndValue getName() {
        return name;
    }

    public void setName(String name) {
        this.name = new KeyAndValue(SEARCH_NAME,name);
    }

    public KeyAndValue getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = new KeyAndValue(SEARCH_PHONE,phone);
    }

    public static class KeyAndValue implements Serializable {
        private String key;
        private String name;

        public KeyAndValue() {
        }

        public KeyAndValue(String key, String name) {
            this.key = key;
            this.name = name;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }


}
